var Measures = (function(){


  var init = function(){
    $('#vs-widget-button-container .virtusize-button').text('PRODUCT MEASUREMENTS');
    $('.virtusize-tooltip-inner span').text('See exact measurements for this item to help you choose which size to buy');


    $('.virtusize-button').removeClass().addClass('virtusize-asos2');

    $('#vs-widget-button-container .virtusize-button').hover(
      function() {
        $('.virtusize-tooltip').show();
      }, function() {
        $('.virtusize-tooltip').hide();
      }
    );

  };



  return {
    init : init
  };

})();

jQuery(document).ready(function($) {

  var mvtVirtusize = setInterval(function(){

    if( $('#vs-widget-button-container').length && $('#vs-widget-button-container').is(":visible") ){
      clearInterval(mvtVirtusize);
      Measures.init();
    }

  },500);

  setTimeout(function(){
    clearInterval(mvtVirtusize);
  },10*1000);


});
